
<meta charset="UTF-8">
<table id="TbClassTable"></table>
<script type="text/javascript">

$(function(){
		$('#TbClassTable').datagrid($.extend({},$.crudgrid.defaults,{
			title:'班级管理',
			url:'tbclass/page',
			dialog:{
				add:{
					title:'新增',
					href:'tbclass/edit',
					action:'tbclass/save'
				},
				edit:{
					title:'修改',
					href:'tbclass/edit',
					action:'tbclass/save'
				},
				search:{
					title:'查询',
					href:'tbclass/search'
				},
				remove:{
					url:'tbclass/delete',
					msg:'是否删除这条数据'
				}
			},
			columns:[
				[
					{title:'cb',field:'cb',checkbox:true},
					{title:'序号',field:'id',width:200,hidden:true},
					{title:'班级名称',field:'name',width:300},
					{title:'班主任',field:'manager',width:200}
				]		
			],
			toolbar:[$.crudgrid.buttons.add,'-',$.crudgrid.buttons.edit,'-',$.crudgrid.buttons.remove,'-',$.crudgrid.buttons.search,'-',$.crudgrid.buttons.refrsh,'-']
			})
		)
})

	
</script>


